package com.lam.smartbutlerv4.ui;
/*
 *  project name:       SmartButlerV5
 *  pakcage name:       com.lam.smartbutlerv4.ui
 *  file name:          ColesCLD2
 *  create date:        2019/2/17 23:39
 *  creator:            Luan Xiyuan
 *  description:        TODO
 */

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.lam.smartbutlerv4.R;
import com.lam.smartbutlerv4.utils.StatusBarUtils;

public class ColesCLD2 extends AppCompatActivity implements View.OnClickListener {
    private Button btn_coles_cld2_continue, btn_coles_cld2_previous;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_coles_cld2);

        initView();
    }

    private void initView() {
        StatusBarUtils.setWindowStatusBarColor(this, R.color.bg_toolbar_default);
        btn_coles_cld2_continue = findViewById(R.id.btn_coles_cld2_continue);
        btn_coles_cld2_continue.setOnClickListener(this);
        btn_coles_cld2_previous = findViewById(R.id.btn_coles_cld2_previous);
        btn_coles_cld2_previous.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_coles_cld2_continue:
                startActivity(new Intent(ColesCLD2.this, ColesCLD3.class));
                break;
            case R.id.btn_coles_cld2_previous:
                startActivity(new Intent(ColesCLD2.this, ColesCLD1.class));
                break;
        }
    }

    //back forbidden
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
    }
}
